package com.etc.entity;

import java.io.Serializable;

/**
 * 药品实体类
 * @author 小白
 *
 */
public class Medicine implements Serializable{
    private Integer medicineid;//药品Id

    private String medicinename;//药品名称

    private String medicinetype;//药品种类

    private int medicinenum;//药品库存数量

    private double medicineprice;//药品单价

    public Integer getMedicineid() {
        return medicineid;
    }

    public void setMedicineid(Integer medicineid) {
        this.medicineid = medicineid;
    }

    public String getMedicinename() {
        return medicinename;
    }

    public void setMedicinename(String medicinename) {
        this.medicinename = medicinename == null ? null : medicinename.trim();
    }

    public String getMedicinetype() {
        return medicinetype;
    }

    public void setMedicinetype(String medicinetype) {
        this.medicinetype = medicinetype == null ? null : medicinetype.trim();
    }

    public int getMedicinenum() {
        return medicinenum;
    }

    public void setMedicinenum(int medicinenum) {
        this.medicinenum = medicinenum;
    }

    public double getMedicineprice() {
        return medicineprice;
    }

    public void setMedicineprice(double medicineprice) {
        this.medicineprice = medicineprice;
    }

	@Override
	public String toString() {
		return "Medicine [medicineid=" + medicineid + ", medicinename=" + medicinename + ", medicinetype="
				+ medicinetype + ", medicinenum=" + medicinenum + ", medicineprice=" + medicineprice + "]";
	}

	public Medicine(String medicinename, String medicinetype, int medicinenum, double medicineprice) {
		super();
		this.medicinename = medicinename;
		this.medicinetype = medicinetype;
		this.medicinenum = medicinenum;
		this.medicineprice = medicineprice;
	}
	
	
    
	public Medicine(String medicinename, String medicinetype, int medicinenum,
			double medicineprice,Integer medicineid) {
		super();
		this.medicineid = medicineid;
		this.medicinename = medicinename;
		this.medicinetype = medicinetype;
		this.medicinenum = medicinenum;
		this.medicineprice = medicineprice;
	}

	
	public Medicine() {
		// TODO Auto-generated constructor stub
	}
}